import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import * as echarts from 'echarts'
// element以及风格相关
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'
// 引入less
import less from 'less'
// 引入接口
import api from './api/api'

const app = createApp(App)
    //将axios的二次封装（api）挂载到全局
app.config.globalProperties.$api = api
app.use(store)
    .use(router)
    .use(less)
    .use(echarts)
    .use(ElementPlus)
    .mount('#app')